aux_source_directory(. CAE_SERVICE_SRC_LIST)
include_directories(../libs/cJSON/include)
if (RTSA_SUPPORT)
include_directories(../libs/rtsa/include)
endif ()

if (NOT RTSA_SUPPORT)
    list(REMOVE_ITEM CAE_SERVICE_SRC_LIST "./CaeRTSAClientSocket.cpp", "./CaeRTSAEventHandler.cpp")
endif ()

add_library(cae_service STATIC ${CAE_SERVICE_SRC_LIST})
target_link_libraries( # Specifies the target library.
        cae_service

        curl
        hwsecure
        cae_3rd
        cae_common
        cae_socket
        CPHMediaEngine
        cae_dataPipe
        cae_dataHandler
        cjson
        )

if (RTSA_SUPPORT)
    target_link_libraries(cae_service rtsaControl unitrans rtsap2p)
endif ()
